<?php include Kohana::find_file('classes', 'util');?>
<!-- Seednia home -->

<script type="text/javascript">
// FYI jQuery: multiple $(document).ready() is possible.
$(document).ready(function() {
	$('.tag').tagsInput({
		'height':'40px',
		'width':'300px'});	
});
</script>

<div id="project_form">
Profile
	<form id="FormProfile" name="FormProfile" method="post" action="<?php echo WEBCONTEXT; ?>/index.php/Profile/edit" >
	<input type="hidden" id="sid" name="sid" value="<?php echo $profile->sid; ?>" />
	<input type="hidden" id="uuid" name="uuid" value="<?php echo $profile->uuid; ?>" />
	<table>
		<tbody>
			<tr>
				<td>Name</td>
				<td><input type="text" id="name" name="name" value="<?php echo Util_Data::getValueOf($profile, 'name'); ?>" /></td>
			</tr>
			<tr>
				<td>Current Location</td>
				<td><input type="text" id="currentLocation" name="currentLocation" value="<?php echo Util_Data::getValueOf($profile, 'currentLocation'); ?>" /></td>
			</tr>
			<tr>
				<td>Hometown</td>
				<td><input type="text" id="hometown" name="hometown" value="<?php echo Util_Data::getValueOf($profile, 'hometown', ""); ?>" /></td>
			</tr>
			<tr>
				<td>Gender</td>
				<td><?php echo Form::select('gender', array("m"=>"Male", "f"=>"Female", "u"=>"Unidentified"), Util_Data::getValueOf($profile, 'gender')); ?>
					</td>
			</tr>
			<tr>
				<td>highlight</td>
				<td><textarea id="highlight" name="highlight" style="height:50px; width:300px" ><?php echo Util_Data::getValueOf($profile, 'highlight'); ?></textarea>
					</td>
			</tr>
			<tr>
				<td>goals</td>
				<td><textarea id="goals" name="goals" style="height:50px; width:300px" ><?php echo Util_Data::getValueOf($profile, 'goals'); ?></textarea>
					</td>
			</tr>

			<tr>
				<td>status</td>
				<td><?php echo Form::select('status', array("1"=>"Available", "0"=>"Not Available"), Util_Data::getValueOf($profile, 'status')); ?>
					</td>
			</tr>
			<tr>
				<td>Time commitment</td>
				<td><?php echo Form::select('timeCommitment', array(1,2,3,4,5,6,7,8,9,10,11), Util_Data::getValueOf($profile, 'status')); ?> hrs per week
					</td>
			</tr>

			<tr>
				<td>Languages</td>
				<td><input id="languageTagNamesCsv" name="languageTagNamesCsv" class="tag" 
						   value="<?php echo Util_Data::getValueOf($profile, 'languageTagNamesCsv'); ?>" /></td>
			</tr>
			<tr>
				<td>Skills</td>
				<td><input id="skillTagNamesCsv" name="skillTagNamesCsv" class="tag"
						   value="<?php echo Util_Data::getValueOf($profile, 'skillTagNamesCsv'); ?>" /></td>
			</tr>
			<tr>
				<td>Interest</td>
				<td><input id="interestTagNamesCsv" name="interestTagNamesCsv" class="tag"
						   value="<?php echo Util_Data::getValueOf($profile, 'interestTagNamesCsv'); ?>" /></td>
			</tr>

			<tr>
				<td>&nbsp;</td>
				<td><input type="submit" name="submit" class="button" id="submit_btn" value="Submit" /></td>
			</tr>
		</tbody>
	</table>
	</form>
</div>
